package com.flyxteam.learner.springboot.data;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import org.springframework.stereotype.Component;

// ## 模拟一个全局数据存储
@Component
public class SomeData {

    public SomeData() {
        info.put("name", "flyxteam00");
    }
    
    private volatile Map<String, Object> info = new ConcurrentHashMap<>();
    public Map<String, Object> getInfo() {
        return info;
    }
    
}
